<script type="application/xhtml+xml" id="img-item-template">
    <div class="col-sm-4 " id="<$=id$>">
        <div class="s-kit-image-item <$=(typeof forUpload !='undefined'&&forUpload)?'tmp':''$>">
            <input name="fileIds" type="hidden" value="<$=id $>">
            <img
                    class="item-image"
                    src="<$=url $>">
            <div class="image-cover ">
                <span><i class="s-kit-icon  fa-trash-o fa"></i></span>
                <$ if(typeof forUpload =='undefined'||!forUpload){ $>
                &nbsp;&nbsp;
                <span class="image-cover-text">设为封面</span>
                <$if(url.indexOf('crop')==-1){$>
                    &nbsp;&nbsp;
                    <span class="image-cover-crop">裁剪</span>
                <$}}$>
            </div>
            <$ if(isThumbnail){ $>
            <div class="img-label">封面图片</div>
            <$}$>
            <$ if(typeof forUpload !='undefined'&&forUpload){ $>
            <div class="img-label">等待上传</div>
            <$}$>
        </div>
    </div>
</script>